package entity;


public class Cart {
	private Integer id;
	private Integer userId;
	private Integer productId;
	private Integer quantity;
	private Integer checked;
	private String createTime;
	private String updateTime;
	private String date;

	public Cart(){
		
	}
			//更新时
	public Cart(Integer userId, Integer productId, Integer quantity, Integer checked, String updateTime, String date) {
		super();
		this.userId = userId;
		this.productId = productId;
		this.quantity = quantity;
		this.checked = checked;
		this.updateTime = updateTime;
		this.date = date;
	}
		//新建时
	public Cart(Integer userId, Integer productId, Integer quantity, String createTime, String updateTime,
			String date) {
		super();
		this.userId = userId;
		this.productId = productId;
		this.quantity = quantity;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.date = date;
	}



	public Integer getId() {
		return id;
	}



	public void setId(Integer id) {
		this.id = id;
	}



	public Integer getUserId() {
		return userId;
	}



	public void setUserId(Integer userId) {
		this.userId = userId;
	}



	public Integer getProductId() {
		return productId;
	}



	public void setProductId(Integer productId) {
		this.productId = productId;
	}



	public Integer getQuantity() {
		return quantity;
	}



	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}



	public Integer getChecked() {
		return checked;
	}



	public void setChecked(Integer checked) {
		this.checked = checked;
	}



	public String getCreateTime() {
		return createTime;
	}



	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}



	public String getUpdateTime() {
		return updateTime;
	}



	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}



	public String getDate() {
		return date;
	}



	public void setDate(String date) {
		this.date = date;
	}



	@Override
	public String toString() {
		return "Cart [id=" + id + ", userId=" + userId + ", productId=" + productId + ", quantity=" + quantity
				+ ", checked=" + checked + ", createTime=" + createTime + ", updateTime=" + updateTime + ", date="
				+ date + "]";
	}
	
	
	
}
